/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ongclientejava;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Carlos Campoy
 */
public class ModeloTablaSocios extends DefaultTableModel{

    @Override
    public Class<?> getColumnClass(int columnIndex) {
        switch (columnIndex){
            case 0:
                return Integer.class;
            case 1:
                return Object.class;
            case 2:
                return Object.class;
            case 3:
                return Object.class;
            case 4:
                return Object.class;
            case 5:
                return Object.class;
            default:
                return Object.class;
        }
    }
    
    public void crear_modelo(){
        this.addColumn("E");
        this.addColumn("DNI");
        this.addColumn("Nombre");
        this.addColumn("1er. Apellido");
        this.addColumn("2do. Apellido");
        this.addColumn("Cuota");
        this.addColumn("Periodicidad");
    }
    
}
